﻿@model IEnumerable<BatsMVCPortal.Models.User>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            UserLogin
        </th>
        <th>
            UserPassword
        </th>
        <th>
            UserMail
        </th>
        <th>
            UserRegisterDate
        </th>
        <th>
            UserProfileName
        </th>
        <th>
            UserProfileBirthday
        </th>
        <th>
            UserProfileSex
        </th>
        <th>
            UserProfileCountry
        </th>
        <th>
            UserProfileRegion
        </th>
        <th>
            UserProfileCity
        </th>
        <th>
            UserProfileAbout
        </th>
        <th>
            UserProfileAvatar
        </th>
        <th>
            UserProfilePhoto
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.UserLogin)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserPassword)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserMail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserRegisterDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfileName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfileBirthday)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfileSex)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfileCountry)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfileRegion)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfileCity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfileAbout)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfileAvatar)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserProfilePhoto)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.UserID }) |
            @Html.ActionLink("Details", "Details", new { id=item.UserID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.UserID })
        </td>
    </tr>
}

</table>
